import request from '@/utils/request'

export const getUserList = data => {
  return request({
    url: 'user/user-index',
    method: 'post',
    data
  })
}
export const getAllUserList = data => {
  return request({
    url: 'user/user-lists',
    method: 'post',
    data
  })
}

export const deleteUser = data => {
  return request({
    url: 'user/user-destroy',
    method: 'post',
    data
  })
}

export const userImport = data => {
  return request({
    url: 'user/user-import',
    method: 'post',
    data
  })
}

export const userAdd = data => {
  return request({
    url: 'user/user-add',
    method: 'post',
    data
  })
}

export const userEdit = data => {
  return request({
    url: 'user/user-edit',
    method: 'post',
    data
  })
}
